package com.liuzhilong.infrastructure.basic.command.hystrix;

/**
 * 模拟远端的服务
 */
public class LongtimeRemoteService implements RemoteService{
    @Override
    public String getData(){
        try {
            Thread.sleep(2*1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
            throw new RuntimeException(e);
        }

        return "OK";
    }

}
